/**
 * yeahmobi.com Inc.
 * Copyright © 2014 YeahMobi | All Rights Reserved.
 */   
    
package com.ndp.fb.mongo.api;

import com.ndp.fb.mongo.model.AccountAdImageMongo;

import java.util.List;

/**
 * @Title: AdImageMongoService.java
 * @Copyright: Copyright © 2015
 * @Description: 
 * @Company: yeahmobi
 * @Created on 下午6:25:37
 * @author giser.yang
 */

public interface AccountAdImageMongoService {
     void saveAccountAdImage(AccountAdImageMongo accountAdImageMongo);
    /**
     * 
     * @discription
     * @author giser.yang       
     * 创建时间 2015年7月17日 下午2:45:15     
     * @param md5isNull md5是否为空
     * @return
     */
     List<AccountAdImageMongo> getAccountAdImageMongosforMd5(boolean md5isNull);
     List<AccountAdImageMongo> getAccountAdImageMongos(List<Long> accountId,boolean md5isNull);
     void batchSaveOrUpdateAccountAdImage(List<AccountAdImageMongo> accountAdImageMongo);
     void updateAccountAdImageUrl128MD5(String mongodbId,String localUrl,String localUrl128,String md5);
     String getMd5byImageHash(String imageHash);
     String getImageHashbyMd5(String md5);
     AccountAdImageMongo getAccountAdImageMongobyImageHash(String imageHash);
}
